﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication5
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (this.TextBox3.Text != "" || this.TextBox1.Text != "" || this.TextBox2.Text != "")
            {
                this.Label2.Text = System.DateTime.Now.ToString();
                this.Label3.Text = "谢谢你的提交";

            }
            else
            {
                this.Label3.Text = "请输入客户信息";
            }
            this.Label4.Text = "请确认输入的信息:";

            this.Label5.Text = "姓名：" + this.TextBox1.Text;
            this.Label6.Text = "年龄：" + this.TextBox2.Text;
            this.Label7.Text = "爱好：" + this.TextBox3.Text;
        }
    }
}